home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / include / symm.md / sys / RCS / core.h,v < prev   
Encoding:
Text File  |  1990-12-08  |  2.3 KB  |  102 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.2
  10. date     90.12.08.00.02.46;  author rab;  state Exp;
  11. branches ;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     90.11.19.17.39.29;  author rab;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @@
  22.  
  23.  
  24. 1.2
  25. log
  26. @*** empty log message ***
  27. @
  28. text
  29. @/*    @@(#)core.h 1.18 88/08/19 SMI    */
  30.  
  31. /*
  32.  * Copyright (c) 1987 by Sun Microsystems, Inc.
  33.  */
  34.  
  35. #ifndef _SYS_CORE_H
  36. #define _SYS_CORE_H
  37.  
  38. #include <sys/exec.h>
  39. #include <symm.md/reg.h>
  40.  
  41. #define CORE_MAGIC    0x080456
  42. #define CORE_NAMELEN    16        /* Related to MAXCOMLEN in user.h */
  43.  
  44. #if defined(sun2) || defined(sun3) || defined(sun3x)
  45. /*
  46.  * The size of struct fpa_regs is changed from 141 ints in 3.0 to
  47.  * 77 ints in 3.x.  A pad of this size difference is added to struct core.
  48.  */
  49. #define CORE_PADLEN    64
  50. #endif
  51.  
  52. /*
  53.  * Format of the beginning of a `new' core file.
  54.  * The `old' core file consisted of dumping the u area.
  55.  * In the `new' core format, this structure is followed
  56.  * copies of the data and  stack segments.  Finally the user
  57.  * struct is dumped at the end of the core file for programs
  58.  * which really need to know this kind of stuff.  The length
  59.  * of this struct in the core file can be found in the
  60.  * c_len field.  When struct core is changed, c_fpstatus
  61.  * and c_fparegs should start at long word boundaries (to
  62.  * make the floating pointing signal handler run more efficiently).
  63.  */
  64. struct core {
  65.     int    c_magic;        /* Corefile magic number */
  66.     int    c_len;            /* Sizeof (struct core) */
  67.     struct    regs c_regs;        /* General purpose registers */
  68.     struct     exec c_aouthdr;        /* A.out header */
  69.     int    c_signo;        /* Killing signal, if any */
  70.     int    c_tsize;        /* Text size (bytes) */
  71.     int    c_dsize;        /* Data size (bytes) */
  72.     int    c_ssize;        /* Stack size (bytes) */
  73.     char    c_cmdname[CORE_NAMELEN + 1]; /* Command name */
  74. #ifdef sun3
  75.     /* This is from the old core.h (C) 1985, but gdb still wants
  76.        this stuff, and I don't think any other sprite program
  77.        uses core.h */
  78.     struct     fp_status c_fpstatus;    /* External FPP state, if any */
  79.     struct  fpa_regs c_fparegs;    /* FPA registers, if any */
  80.     int    c_pad[CORE_PADLEN];    /* see comment above */
  81. #else    
  82. #ifdef FPU
  83.     struct    fpu c_fpu;        /* external FPU state */
  84. #endif
  85.     int    c_ucode;        /* Exception no. from u_code */
  86. #endif    
  87. };
  88.  
  89. #endif /*!_SYS_CORE_H*/
  90. @
  91.  
  92.  
  93. 1.1
  94. log
  95. @Initial revision
  96. @
  97. text
  98. @d11 1
  99. a11 1
  100. #include <sun3.md/reg.h>
  101. @
  102.